<?
error_reporting(E_ALL);

//------------------------------------------------------------------------------

ini_set('default_charset','UTF-8');

setlocale(LC_ALL,'ru_RU.UTF-8');

//------------------------------------------------------------------------------

define('_basedomain', 'http://domain.com');
define('_version','xBugTracker v0.9-7');
define('_sitename', 'xBugTracker');

//------------------------------------------------------------------------------

// directories

define('_root', $_SERVER['DOCUMENT_ROOT'].'/'); // !!! with SLASH in the end
define('_sys', _root.'sys/'); // where all system files are placed


define('_atchdir', _root.'files/');
define('_jsdir', '/jsx/');
define('_tpldir', _root.'tplx/');

//-----------------------------------------------------------------------------

define('_badextensions', '(php[0-9]?|phtml|asp|pl|cgi)');


//------------------------------------------------------------------------------

// mysql

define('_mysqlhost', 'localhost');  // host
define('_mysqluser', 'bugs');       // login
define('_mysqlpass', 'password');   // password
define('_mysqldbse', 'bugs');       // database name

define('_mysql_log_enable', true);
define('_mysql_log', _sys.'mysql.log'); // log file

//------------------------------------------------------------------------------

// anonymous control

define('_anonymous_id', 1);       // in mysql-database
define('_login_anonymous', true); // login all unlogged users as anonymous-user

define('_anonymous_login', 'nobody');
define('_anonymous_passw', '15d08cd71d505a8e3cfab94bb31743d2');

define('_trusted_ips','192\.168\. 172\.16\. 10\. 127\.'); // where anonymous can be

//------------------------------------------------------------------------------

// login options

define('_login_length', 4);   //minimal length
define('_password_length', 4);

//------------------------------------------------------------------------------

// posting options

define('_uname_length',    4); // minimal length
define('_comment_length',  5); // ^
define('_title_length',    5);


//------------------------------------------------------------------------------

// viewing options

define('_comments_on_page', 999);
define('_bugs_on_page', 20);

define('_date_format', '%Y.%m.%d %H:%M');

//------------------------------------------------------------------------------

// misc

define('_registration_enabled', true);  // users can register themselves
define('_register_as_blocked', true);   // register new users as blocked

define('_systememail', 'bugs@domain.com'); // reply-to address for sending emailes from bugtracker
define('_adminemail', 'admin@domain.com'); // where to send system messages.

define('_default_level', 3); // lower access level id (from db)

define('_admins', ' admin '); // users with all rights

?>